package com.yanqu.road.server.cmd.activity.dafuweng;

import com.yanqu.road.pb.monopoly.CrossMonopolyProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.cross.battle.DaFuWengDataMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

import java.util.List;

@Cmd(code = CrossProtocol.C_CROSS_DA_FU_WENG_UNION_COLLECT_MEMBER_MSG, desc = "")
public class CrossDfwMemberCollectCmd extends CrossUnionCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        CrossMonopolyProto.CrossDfwCollectEventMemberMsg req = CrossMonopolyProto.CrossDfwCollectEventMemberMsg.parseFrom(packet.getBytes());
        int activityId = req.getActivityId();
        int itemId = req.getItemId();
        String unionId = req.getUnionId();
        List<Long> memberIdList = req.getMemberIdList();
        DaFuWengDataMgr.getCollectEventMemberList(activityId, serverId, packet.getPlayerId(), unionId, itemId, memberIdList, groupId);
    }

    @Override
    public void sendData() {

    }
}
